# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
_pkgname=affine
pkgname=py3-$_pkgname
pkgver=2.3.1
pkgrel=0
pkgdesc="Affine transformation matrices"
url="https://pypi.org/project/affine/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="pytest"
source="py3-affine-$pkgver.tar.gz::https://github.com/sgillies/affine/archive/$pkgver.tar.gz"
builddir="$srcdir/affine-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=2
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/*/tests
}

sha512sums="
ae9155d5121358adb8f3ef12ea03ae37b97487d95a08b564352574e38196c7abf97aa7da16f5dbdb9117e25ed525fdbe4a3e49fffbf718770fd7a5ca5f81c7e2  py3-affine-2.3.1.tar.gz
"
